import { defineStore } from "pinia";
import { store } from "@/store";
import { GetStorePlaceList, GetAllStorePlaceList } from '@/utils/api/BasicManagement/locations'
import { GetAllStation } from '@/utils/api/dispatch/station'

export const dialogStore = defineStore({
    id: "dialog",
    state: () => ({
        // 全屏开关状态
        isFullscreen: false,
        // 站点信息
        stationList: [] as any,
        title: ''
    }),
    actions: {
        // 切换全屏状态
        toggleFullscreen() {
            this.isFullscreen = !this.isFullscreen;
        },
        // 站点信息修改
        getStationList(data) {
            this.stationList = data
        },
        getTitle(data) {
            this.title = data
        }
    }
});

export function dialogStoreHook() {
    return dialogStore(store);
}
